package cn.spring.dao.impl;

import cn.spring.dao.UserDao;
import cn.spring.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

//通过注解定义了一个DAO
@Repository("userDao")
public class UserDaoImpl implements UserDao {
    //声明接口类型的引用和具体实现类解耦合
    @Override
    public int updateUser() {
        System.out.println("修改成功");
        return 1;
    }

}